package com.dalin.platform.etl.action;

import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.etl.service.EtlService;
import com.dalin.platform.etl.vo.EtlDatabaseInfoVo;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-11-25                                                     *
 * @modDate: 2010-11-25                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class DatabaseInfoAddModAction extends StrutsTwoAction{
    private EtlService etlService; // 
    private EtlDatabaseInfoVo vo; // 





    public String execute()throws Exception {
        super.printInfo("", "===== this action begin");
        if (vo.getDatabaseId() == null) {
            etlService.addEtlDatabaseInfo(vo);
        } else {
            etlService.modifyEtlDatabaseInfo(vo);
        }
        setResContent(true, "");
        super.printInfo("", "===== this action end");
        return null;

    }

    

    public EtlService getEtlService() {
		return etlService;
	}



	public void setEtlService(EtlService etlService) {
		this.etlService = etlService;
	}



	public EtlDatabaseInfoVo getVo() {
        return vo;

    }

    public void setVo(EtlDatabaseInfoVo vo) {
        this.vo = vo;

    }

}
